



//
//  UrgentMoneyView.m
//  LuxuryGoods
//
//  Created by DCQ on 2018/8/7.
//  Copyright © 2018年 Future. All rights reserved.
//

#import "UrgentMoneyView.h"
@interface UrgentMoneyView()
@property (weak, nonatomic) IBOutlet UIView *oneView;
@property (weak, nonatomic) IBOutlet UIView *towView;
@property (weak, nonatomic) IBOutlet UIView *threeView;
@property (weak, nonatomic) IBOutlet UIButton *closeBtn;

@end
@implementation UrgentMoneyView

-(void)awakeFromNib{
    [super awakeFromNib];
    UITapGestureRecognizer *oneTap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(oneAction:)];
    [self.oneView addGestureRecognizer:oneTap ];
    
    UITapGestureRecognizer *towTap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(towAction:)];
    [self.towView addGestureRecognizer:towTap ];
    UITapGestureRecognizer *threeTap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(threeAction:)];
    [self.threeView addGestureRecognizer:threeTap ];
    
}

- (void)oneAction:(id)sender{
    
    if (self.btnAction) {
        self.btnAction(UrgentMoneyBtnType_tiaojiao);
    }
}
- (void)towAction:(id)sender{
    
    if (self.btnAction) {
        self.btnAction(UrgentMoneyBtnType_huishou);
    }
}
- (void)threeAction:(id)sender{
    if (self.btnAction) {
        self.btnAction(UrgentMoneyBtnType_bumaile);
    }
    
}
- (IBAction)closeAction:(id)sender {
    if (self.btnAction) {
        self.btnAction(UrgentMoneyBtnType_close);
    }
}

@end
